Skip to content

gate http server behind http-api feature in mqdb-agent#67

Merged
fabracht merged 2 commits into
mainfrom
fix/agent-http-api-feature-gate
May 23, 2026
Merged

gate http server behind http-api feature in mqdb-agent#67
fabracht merged 2 commits into
mainfrom
fix/agent-http-api-feature-gate

Conversation

@fabracht
Copy link
Copy Markdown
Contributor

Summary

  • Gate MqdbAgent::http_config, with_http_config, and spawn_http_task behind #[cfg(feature = "http-api")]. Pre-fix, cargo check -p mqdb-agent --no-default-features failed with 5 errors (E0433, E0609, E0282) — the flag was declared but the field types referenced crate::http unconditionally.
  • Bump mqdb-agent 0.8.0 → 0.8.1 (patch). Downstream constraints already accept patches.
  • Correct stale build docs: --features agent-only and the native feature flag are both referenced in 4 files but exist in no Cargo.toml. Fixed in README.md, docs/distributed-design.md, docs/testing/01-setup.md. Added a feature-flag reference table — http-api was previously undocumented.

Test plan

  • cargo make dev (format + pedantic clippy + 748 tests)
  • cargo clippy -p mqdb-agent --no-default-features --all-targets -- -D warnings
  • cargo clippy -p mqdb-agent --all-targets -- -D warnings

@fabracht fabracht merged commit 2991df7 into main May 23, 2026
5 checks passed
@fabracht fabracht deleted the fix/agent-http-api-feature-gate branch May 23, 2026 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant